package com.zxy.ziems.server.convert;

import com.zxy.ziems.server.domain.Dept;
import com.zxy.ziems.server.domain.Org;
import com.zxy.ziems.server.dto.DeptDto;
import com.zxy.ziems.server.dto.OrgDto;
import com.zxy.ziems.server.vo.DeptVo;
import com.zxy.ziems.server.vo.OrgVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @description:
 * @auther: windrunner
 * @date 2022/9/1 18:45
 */
@Mapper
public interface OrgConvert {

    OrgConvert INSTANCE = Mappers.getMapper(OrgConvert.class);

    Org orgDtoToOrg(OrgDto orgDto);

    OrgVo orgToOrgVo(Org org);

    List<OrgVo> orgListToOrgVoList(List<Org> orgList);

}
